The ACS determines spacecraft orientation through the use of star trackers, the fine sun sensor, gyros, magnetometers, and signals from the Earth Sensor Assembly Module. Once its orientation is known, the ACS can make adjustments with reaction wheels, magnetic torquer bars, or by firing the thrusters on the Propulsion Module.
Normally the on-board computer is the controller for these functions, but in certain safe-hold modes, they are performed by the electronics in the ACS.